package com.ruyuan.seckilling.inventory.service;

import com.ruyuan.seckilling.inventory.vo.ProductStockVo;

/**
 * @author zhonghuashishan
 */
public interface InventoryService {

    ProductStockVo queryCurrentStock(Long activityId, Long skuId);

    Boolean syncStock(Long activityId, Long skuId, Integer stock);

    Boolean confirmStock(Long sequence, Long activityId, Long skuId);

    Boolean releaseStock(Long sequence, Long activityId, Long skuId);

    Boolean cleanStock(Long activityId, Long skuId);
}
